package ModelLayer;

import java.util.*;
/**
 * Write a description of class DVD here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class DVD
{
    private String barcode;
    private String title;
    private String artist;
    private String publicationDate;
    private ArrayList<DVDCopy> dvdcopyList;
    
    public DVD(String barcode, String title, String artist, String publicationDate)
    {
        dvdcopyList = new ArrayList<DVDCopy>();
        this.barcode = barcode;
        this.title = title;
        this.artist = artist;
        this.publicationDate = publicationDate;
    }
   
    public void setBarcode(String barcode)
    {
        this.barcode = barcode;
    }
   
    public void setTitle(String title)
    {
        this.title = title;
    }
    
    public void setArtist(String artist)
    {
        this.artist = artist;
    }
    
    public void setPublicationDate(String publicationDate)
    {
        this.publicationDate = publicationDate;
    }
    
    public String getBarcode()
    {
        return barcode;
    }
    
    public String getTitle()
    {
        return title;
    }
    
    public String getArtist()
    {
        return artist;
    }
    
    public String getPublicationDate()
    {
        return publicationDate;
    }
    
    public ArrayList<DVDCopy> getDvdCopyList()
    {
        return dvdcopyList;
    }
    
    public void makeCopy(String serialNumber, String purchaseDate, String purchasePrice)
    {
        DVDCopy object = new DVDCopy(serialNumber, purchaseDate, purchasePrice); 
        dvdcopyList.add(object);
    }
}

